<template>
<!--  <div>-->
<!--    <div class="item">管理员名:{{admin.adminName}}</div>-->
<!--    <div class="item">管理员地址:{{admin.address}}</div>-->
<!--    <div class="item">管理员电话:{{admin.phone}}</div>-->
<!--    <div class="item">管理员邮箱:{{admin.email}}</div>-->
<!--  </div>-->
  <div class="home">
<!--    本地天气预报图-->
<!--    <localWeather />-->
    <!--  藏品信息饼状图-->
    <collectionsPieChart />

    <!--  文创产品信息玫瑰图-->
    <productsPieChart />

<!--    文创产品价格 销量 id热力图-->
<!--    <productsHeadMap />-->
  </div>

</template>

<script>
// @ is an alias to /src
import Cookies from 'js-cookie'
import collectionsPieChart from "@/views/home/CollectionsPieChart"
import productsPieChart from "@/views/home/ProductsPieChart"
import localWeather from "../../../front_home/src/components/LocalWeather"
import productsHeadMap from "@/views/mall/order/ProductsHeatMap"
export default {
  name: 'Home',
  components: {
    collectionsPieChart,
    productsPieChart,
    localWeather,
    // productsHeadMap
  },
  data(){
    return {
      admin: Cookies.get('admin') ? JSON.parse(Cookies.get('admin')) :{}
    }
  },
  created() {
    console.log(JSON.parse(Cookies.get('admin')))
  }
}
</script>

<style>
.item{
  margin:10px;
  color: #24dcf3;
}
</style>
